﻿using System.Configuration;

namespace CID.Execution.Support.DeploymentInitiation.Configuration
{
    public class DeploymentInitiationSection : ConfigurationSection
    {
        private const string ServiceConfiguratorsElement = "serviceConfigurators";
        public const string SectionName = "deploymentInitiation";

        [ConfigurationProperty(ServiceConfiguratorsElement, IsDefaultCollection = false)]
        [ConfigurationCollection(typeof(DeploymentInitiationServiceConfiguratorElementCollection), AddItemName = "add", ClearItemsName = "clear", RemoveItemName = "remove")]
        public DeploymentInitiationServiceConfiguratorElementCollection ServiceConfigurators
        {
            get { return (DeploymentInitiationServiceConfiguratorElementCollection)this[ServiceConfiguratorsElement]; }
        }
    }
}
